package com.ruoyi.project.WebMoudle.streamShop.mapper;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import com.ruoyi.project.WebMoudle.streamShop.domain.StreamShop;

/**
 * 商家流水Mapper接口
 * 
 * @author ruoyi
 * @date 2020-08-15
 */
public interface StreamShopMapper 
{
    /**
     * 查询商家流水
     * 
     * @param id 商家流水ID
     * @return 商家流水
     */
    public StreamShop selectStreamShopById(Long id);

    /**
     * 查询商家流水列表
     * 
     * @param streamShop 商家流水
     * @return 商家流水集合
     */
    public List<StreamShop> selectStreamShopList(StreamShop streamShop);

    /**
     * 新增商家流水
     * 
     * @param streamShop 商家流水
     * @return 结果
     */
    public int insertStreamShop(StreamShop streamShop);

    /**
     * 修改商家流水
     * 
     * @param streamShop 商家流水
     * @return 结果
     */
    public int updateStreamShop(StreamShop streamShop);

    /**
     * 删除商家流水
     * 
     * @param id 商家流水ID
     * @return 结果
     */
    public int deleteStreamShopById(Long id);

    /**
     * 批量删除商家流水
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteStreamShopByIds(String[] ids);


    List<StreamShop> selectReturnList(StreamShop streamShop);

    BigDecimal queryReturnMoneySum(StreamShop streamShop);

    List<Map> queryReturnOrder(Long shopId);
}
